﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using Digitalmes.Model;
using Digitalmes.Model.WmsManagement;

namespace Digitalmes.Model.WmsManagement
{
    /// <summary>
    /// 盘点表单
    /// </summary>
	[Table("StoreTransferSheet")]

    [Display(Name = "_Model.StoreTransferSheet")]
    public class StoreTransferSheet : BasePoco,IPersistPoco,ITenant,IWorkflow
    {
        [Key]
        [Display(Name = "_Model._StoreTransferSheet._ID")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public new long ID { get; set; }
        [Display(Name = "_Model._StoreTransferSheet._Code")]
        [Comment("调拨单号")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string Code { get; set; }
        [Display(Name = "_Model._StoreTransferSheet._Desc")]
        [Comment("调拨说明")]
        public string Desc { get; set; }
        [Display(Name = "_Model._StoreTransferSheet._StoretakeDate")]
        [Comment("调拨时间")]
        public string StoretakeDate { get; set; }
        [Display(Name = "_Model._StoreTransferSheet._Status")]
        [Comment("状态")]
        public FormStatusEnum? Status { get; set; }
        [Display(Name = "_Model._StoreTransfer._Sheet")]
        [InverseProperty("Sheet")]
        public List<StoreTransfer> StoreTransfer_Sheet { get; set; }
        [Display(Name = "_Model._StoreTransferSheet._IsValid")]
        [Comment("是否有效")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public bool IsValid { get; set; } = true;
        [StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string TenantCode { get; set; }

	}

}
